package com.inforich.appManage.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.inforich.common.core.domain.BaseParamEntity;
import com.inforich.common.annotation.Excel;
import javax.validation.constraints.Size;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.inforich.common.core.domain.BaseEntity;

/**
 * app用户对象 br_app_user
 *
 * @author hjm
 * @date 2022-10-27
 */
@Data
@EqualsAndHashCode()
@Accessors(chain = true)
@TableName("br_app_user")
public class AppUser extends BaseParamEntity {

  private static final long serialVersionUID = 1L;

  /**
   * 主键
   */
  @TableId(type = IdType.ASSIGN_UUID)
  private String id;

  /**
   * 账号
   */
  @Excel(name = "账号")
  @Size(max = 36)
  private String userAccount;

  /**
   * 名称
   */
  @Excel(name = "姓名")
  @Size(max = 36)
  private String userName;

  /**
   * 密码
   */
  @Size(max = 36)
  private String userPassword;

  /**
   * 用户手机号
   */
  @Excel(name = "用户手机号")
  @Size(min = 11, max = 11)
  private String userPhone;

  /**
   * 身份证
   */
  @Excel(name = "身份证")
  @Size(max = 18)
  private String userIdnumber;

  /**
   * 状态(1:正常,0:禁用)
   */
  @Excel(name = "状态", dictType = "sys_valid")
  private Integer status;

  /**
   * 创建时间
   */
  @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
  private Date createdDate;

  /**
   * 最后一次登录时间
   */
  @Excel(name = "最后一次登录时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
  private Date lastLoginTime;

}